#include "namedpipe.hpp"

// 进程A 向管道当中写 “i am process A”
int main()
{
    NamedPipe fifo(common_path.c_str(), User);
    // sleep(3);

    if (fifo.openForWrite())
    {
        std::string message("i am process A");
        fifo.writeNamedPipe(message);
    }
    return 0;
}